
// MainFrm.h : interface of the CMainFrame class
//

#pragma once

class CMainFrame : public CFrameWnd
{
	
public:
	CMainFrame();
protected: 
	DECLARE_DYNAMIC(CMainFrame)

// Attributes
public:

// Operations
public:

// Overrides
public:
	//virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

// Implementation
public:
	virtual ~CMainFrame();

// Generated message map functions
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	DECLARE_MESSAGE_MAP()
protected:
	int m_nCellWidth;   // Cell width in pixels
	int m_nCellHeight;  // Cell height in pixels
	int m_nRibbonWidth; // Ribbon width in pixels
	int m_nViewWidth;   // Workspace width in pixels
	int m_nViewHeight;  // Workspace height in pixels
	int m_nHScrollPos;  // Horizontal scroll position
	int m_nVScrollPos;  // Vertical scroll position
	int m_nHPageSize;   // Horizontal page size
	int m_nVPageSize;   // Vertical page size


public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPaint();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
};


